Problem Note 33783: Inline style functions insert blank spaces in ODS PDF output
If the ODS ESCAPECHAR statement is used in conjunction with one or more of the following inline functions in a TITLE or FOOTNOTE statement, or inside data, headers, or ODS TEXT= text, the results appear double spaced in the PCL, PDF, or PostScript (PS) output created by ODS:
ALPHA
BETA
DAGGER
GAMMA
SIGMA
SUPER
UNICODE
To circumvent the problem, use the SUB inline function, use hexadecimal values to insert the desired symbols, or change the fonts used by the ODS PRINTER destination as shown in the sample code on the Full Code tab.
Operating System and Release Information
SAS System | Base SAS | Solaris for x64 | 9.2 TS1M0 | 9.4 TS1M2 |
Linux for x64 | 9.2 TS1M0 | 9.4 TS1M2 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.4 TS1M2 |
Linux | 9.2 TS1M0 | 9.4 TS1M2 |
HP-UX IPF | 9.2 TS1M0 | 9.4 TS1M2 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.4 TS1M2 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.4 TS1M2 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.4 TS1M2 |
Windows Vista | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.4 TS1M2 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
z/OS | 9.2 TS1M0 | 9.4 TS1M2 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Solution 1 shows a problematic set of TITLE statements with workaround code illustrated in the FOOTNOTE statements. Solution 2 shows a font change to the Titlefont and Titlefont1 elements to prevent double spacing in the titles.
/* Solution 1 */
options nodate nonumber;
ods escapechar="^";
ods pdf file="solution1.pdf" notoc;
proc print data=sashelp.class;
/* Titles appear double spaced */
title "^{super 1}testing";
title2 "^{super 2}another test";
/* Footnotes appear single spaced */
footnote "B9"x "testing";
footnote2 "^{sub 2}another test";
run;
ods pdf close;
/* Solution 2 */
proc template;
define style styles.myprinter;
parent = styles.printer;
class fonts /
'TitleFont2' = ("Times",12pt,bold italic)
'TitleFont' = ("Times",13pt,bold italic)
'StrongFont' = ("Times",10pt,bold)
'EmphasisFont' = ("Times",10pt,italic)
'FixedEmphasisFont' = ("Courier",9pt,italic)
'FixedStrongFont' = ("Courier",9pt,bold)
'FixedHeadingFont' = ("Courier",9pt,bold)
'BatchFixedFont' = ("SAS Monospace, Courier",6.7pt)
'FixedFont' = ("Courier",9pt)
'headingEmphasisFont' = ("Times",11pt,bold italic)
'headingFont' = ("Times",11pt,bold)
'docFont' = ("Times",10pt);
end;
run;
footnote;
options nodate nonumber;
ods escapechar='^';
ods pdf file="solution2.pdf" notoc style=styles.myprinter;
proc print data=sashelp.class;
/* Titles appear single spaced */
title "^{super 1}testing";
title2 "^{super 2}another test";
run;
ods pdf close;
Some inline style functions cause output to appear double spaced in ODS PCL, PDF, or PS output.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2008-10-30 15:31:32 |
Date Created: | 2008-10-28 09:26:02 |